package com.code_g.dao;

import com.code_g.domain.Account;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

public interface AccountMapper {

    @Insert("insert into account values(#{id},#{name},#{money})")
    void save(Account account);


    @Select("select * from account")
    List<Account> findAll();
}
